package com.lishe.lishe.asynchttp;

import java.io.IOException;

import okhttp3.Call;
import okhttp3.Response;

/**
 * Created by shino on 2017/11/3.
 * okHttp监听器
 */

public class HttpResponse {
    DataResponse dataResponse;

    HttpResponse(DataResponse dataResponse) {
        this.dataResponse = dataResponse;
    }

    public interface DataResponse {
        void onSuccess(String method,Call call, Response response,String data);
        void onFail(String method,Call call,  IOException e);
    }
}
